package com.ponhu.ea2.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ApiModel(value = "属性值项-数据传输模型DTO")
public class PhPropertyValueDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "属性ID不能为空")
    @ApiModelProperty(value = "属性ID", required = true)
    private Long propertyId;

    @NotEmpty(message = "属性名称不能为空")
    @ApiModelProperty(value = "属性名称", required = true)
    private String propertyName;

    @ApiModelProperty(value = "属性值ID：属性是文本框类型时不传参")
    private Long valueId;

    @ApiModelProperty(value = "属性值内容")
    private String propertyValue;

}
